package org.mms.feign;

import org.mms.pojo.dto.PermissionDto;
import org.mms.pojo.entity.Permission;
import org.mms.pojo.util.ResponseMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(
        name = "mms-user-service",
        path = "/api/permissions",
        contextId = "permissionFeignService")
public interface PermissionFeignService {

    @GetMapping
    ResponseMessage<List<PermissionDto>> getAll();
}
